package cfca.seal.util;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Enumeration;
import java.util.Properties;

public class IdentificationTypeUtil
{
  private static Properties identificationTypeProperties = new Properties();

  public IdentificationTypeUtil(String propertiesFile) throws IOException {
    identificationTypeProperties.load(new InputStreamReader(new FileInputStream(propertiesFile), "UTF-8"));
  }

  public String getPropertyValueByKey(String key) {
    String value = "";
    if (identificationTypeProperties.containsKey(key)) {
      value = identificationTypeProperties.getProperty(key);
    }
    return value;
  }

  public Enumeration<?> getPropertyNames() {
    return identificationTypeProperties.propertyNames();
  }
}